#include<iostream>
using namespace std;

string s;

int cnt = 0;
int main()
{
    cin >> s;
    for (int i = 0;i < s.size();++i)
    {
        if (s[i] == '#')
        {
            cnt++;
            if (cnt & 1) cout << i + 1 << ',';
            else cout << i + 1 << endl;
        }

    }
}
